package com.example.choupaiapp.main.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ASUS on 2019/11/21.
 */

public class InterestLabelBean implements Serializable {

    /**
     * msg : success
     * code : 0
     * list : [{"id":1,"parentId":0,"name":"运动","createTime":"2019-11-20T08:31:38.000 0000","list":[{"id":2,"parentId":1,"name":"篮球","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":3,"parentId":1,"name":"足球","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":4,"parentId":1,"name":"乒乓球","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":5,"parentId":1,"name":"游泳","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":6,"parentId":1,"name":"台球","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":7,"parentId":1,"name":"爬山","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":8,"parentId":1,"name":"跑跑卡丁车","createTime":"2019-11-20T08:31:38.000 0000","list":null}]},{"id":9,"parentId":0,"name":"艺术","createTime":"2019-11-20T08:31:38.000 0000","list":[{"id":10,"parentId":9,"name":"绘画","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":11,"parentId":9,"name":"书法","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":12,"parentId":9,"name":"音乐","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":13,"parentId":9,"name":"写作","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":14,"parentId":9,"name":"魔术","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":15,"parentId":9,"name":"吉他","createTime":"2019-11-20T08:31:38.000 0000","list":null}]},{"id":16,"parentId":0,"name":"阅读","createTime":"2019-11-20T08:31:38.000 0000","list":[{"id":17,"parentId":16,"name":"文学","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":18,"parentId":16,"name":"哲学","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":19,"parentId":16,"name":"经济","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":20,"parentId":16,"name":"历史","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":21,"parentId":16,"name":"政治","createTime":"2019-11-20T08:31:38.000 0000","list":null}]}]
     */

    private String msg;
    private int code;
    private List<ListBeanX> list;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<ListBeanX> getList() {
        return list;
    }

    public void setList(List<ListBeanX> list) {
        this.list = list;
    }

    public static class ListBeanX implements Serializable{
        /**
         * id : 1
         * parentId : 0
         * name : 运动
         * createTime : 2019-11-20T08:31:38.000 0000
         * list : [{"id":2,"parentId":1,"name":"篮球","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":3,"parentId":1,"name":"足球","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":4,"parentId":1,"name":"乒乓球","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":5,"parentId":1,"name":"游泳","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":6,"parentId":1,"name":"台球","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":7,"parentId":1,"name":"爬山","createTime":"2019-11-20T08:31:38.000 0000","list":null},{"id":8,"parentId":1,"name":"跑跑卡丁车","createTime":"2019-11-20T08:31:38.000 0000","list":null}]
         */

        private int id;
        private int parentId;
        private String name;
        private String createTime;
        private List<ListBean> list;


        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getParentId() {
            return parentId;
        }

        public void setParentId(int parentId) {
            this.parentId = parentId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean implements Serializable{
            /**
             * id : 2
             * parentId : 1
             * name : 篮球
             * createTime : 2019-11-20T08:31:38.000 0000
             * list : null
             */

            private int id;
            private int parentId;
            private String name;
            private String createTime;
            private Object list;
            private boolean isLabel;

            public boolean isLabel() {
                return isLabel;
            }

            public void setLabel(boolean label) {
                isLabel = label;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getParentId() {
                return parentId;
            }

            public void setParentId(int parentId) {
                this.parentId = parentId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public Object getList() {
                return list;
            }

            public void setList(Object list) {
                this.list = list;
            }
        }
    }
}
